# 定义一个布尔变量
is_raining = True

# 打印变量的值
print("Is it raining?", is_raining)

# 进行一些基本的布尔运算
if is_raining:
    print("Take an umbrella with you.")
else:
    print("No need for an umbrella today.")

# 使用逻辑运算符进行条件判断
age = 20
if age >= 18 and is_raining:
    print("You are eligible to vote and it's raining.")
elif age >= 18:
    print("You are eligible to vote but it's not raining.")
else:
    print("You are not eligible to vote.")
